package com.zhixiang.xaec.entity.system;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.cfg.Comment;

import com.zhixiang.xaec.entity.BaseEntity;

@Entity
@Table(name="sys_TemplateAttributes")
@Comment("模版属性")
public class TemplateAttributes extends BaseEntity
{
    @Comment("模版")
    @ManyToOne(targetEntity=Template.class,cascade=CascadeType.ALL)
    @JoinColumn(name="templateId")
    protected Template template;

    @Comment("数据库字段")
    protected String taField;
 
    @Comment("名称")
    protected String taFieldName;
  
    @Comment("默认值")
    protected String taFieldValue;

    public Template getTemplate()
    {
        return template;
    }
    
    public void setTemplate(Template template)
    {
        this.template = template;
    }

    public String getTaField()
    {
        return taField;
    }

    public void setTaField(String taField)
    {
        this.taField = taField;
    }

    public String getTaFieldName()
    {
        return taFieldName;
    }

    public void setTaFieldName(String taFieldName)
    {
        this.taFieldName = taFieldName;
    }

    public String getTaFieldValue()
    {
        return taFieldValue;
    }

    public void setTaFieldValue(String taFieldValue)
    {
        this.taFieldValue = taFieldValue;
    }
    
    
}
